package com.helloniu.wb.tools {

import com.helloniu.fl.util.Tool;

public class DrawingToolInfo {
    public function DrawingToolInfo(ashapeOwner:String = null, alockOwner:String = null,
        ashapeID:String = null,  ashapeClass:String = null, ashapePoints:Array = null)
    {
        this.shapeOwner = ashapeOwner;
        this.lockOwner = alockOwner;
        this.shapeID = ashapeID;
        this.shapeClass = ashapeClass;
        this.shapePoints = ashapePoints;
    }

    // @temp tonyy
    public function parseData(obj:Object):void {
        this.shapeOwner = obj.shapeOwner;
        this.lockOwner = obj.lockOwner;
        this.shapeID = obj.shapeID;
        this.shapeClass = obj.shapeClass;
        this.shapePoints = Tool.toPointsArray(obj.shapePoints);
    }

    // @temp tonyy
    public function writeData(obj:Object):void {
        obj.shapeOwner = this.shapeOwner;
        obj.lockOwner = this.lockOwner;
        obj.shapeID = this.shapeID;
        obj.shapeClass = this.shapeClass;
        obj.shapePoints = this.shapePoints;
    }

    public var shapeOwner:String = null;
    public var lockOwner:String = null;
    public var shapeID:String = null;
    public var shapeClass:String = null;
    public var shapePoints:Array = null;
}
}